import request from '@/utils/request'

// 查询捐赠物种类列表
export function listDonationType(query) {
  return request({
    url: '/manage/donationType/list',
    method: 'get',
    params: query
  })
}

// 查询捐赠物种类详细
export function getDonationType(id) {
  return request({
    url: '/manage/donationType/' + id,
    method: 'get'
  })
}

// 新增捐赠物种类
export function addDonationType(data) {
  return request({
    url: '/manage/donationType',
    method: 'post',
    data: data
  })
}

// 修改捐赠物种类
export function updateDonationType(data) {
  return request({
    url: '/manage/donationType',
    method: 'put',
    data: data
  })
}

// 删除捐赠物种类
export function delDonationType(id) {
  return request({
    url: '/manage/donationType/' + id,
    method: 'delete'
  })
}
